<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Goods extends Model
{
    //使用软删除
    use SoftDeletes;
    //表名
    protected $table = 'love_goods';

    /*public function fromDateTime($value){
        return strtotime(parent::fromDateTime($value));
    }

    public function getDeletedAtAttribute()
    {
        return date('Y-m-d H:i:s', $this->attributes['deleted_at']);
    }*/


}
